/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package domain.userManagement.models;

import domain.taskManagement.models.TaskList;

/**
 *
 * @author peterfrem
 */
public class User {
    
    private String username;
    private String password;
    private String displayName;
    private int id;    
    private TaskList tasks;
    
    public User(String email, String password, String displayName){
	this.username = email;
	this.password = password;
	this.displayName = displayName;
    }
    
    public User(String email, String password, String displayName, TaskList tasks){
	this.username = email;
	this.password = password;
	this.displayName = displayName;
	this.tasks = tasks;
    }

    /**
     * @return the username
     */
    public String getUsername() {
	return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String email) {
	this.username = email;
    }

    /**
     * @return the password
     */
    public String getPassword() {
	return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
	this.password = password;
    }

    /**
     * @return the id
     */
    public int getId() {
	return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
	this.id = id;
    }

    /**
     * @return the displayName
     */
    public String getDisplayName() {
	return displayName;
    }

    /**
     * @param displayName the displayName to set
     */
    public void setDisplayName(String displayName) {
	this.displayName = displayName;
    }

    /**
     * @return the tasks
     */
    public TaskList getTasks() {
	return tasks;
    }

    /**
     * @param tasks the tasks to set
     */
    public void setTasks(TaskList tasks) {
	this.tasks = tasks;
    }
    
}
